<!-- inc:head -->
<div id="body">
	<div id="left">
		<div id="user_cp"></div>
	</div>
	<div id="right">
		<div class="block-title"><span class="red">{:$_SESSION[user_name]}</span>，您好！</div>
		<div class="block-msg">
			<table style="padding:10px 10px 10px 25px;">
			<form method="post" action="{:site_url('usercp,info')}" onsubmit="return check_usercp();">
			<tr>
				<td>Email：</td>
				<td><input type="text" name="email" id="email" value="{:$rs[email]}"> &nbsp;<span class="red">*</span> 邮箱不允许为空</td>
			</tr>
			<tr>
				<td>手机：</td>
				<td><input type="text" name="mobile" id="mobile" value="{:$rs[mobile]}"></td>
			</tr>
			<tr>
				<td>电话：</td>
				<td><input type="text" name="tel" id="tel" value="{:$rs[tel]}"></td>
			</tr>
			<tr>
				<td>MSN：</td>
				<td><input type="text" name="msn" id="msn" value="{:$rs[msn]}"></td>
			</tr>
			<tr>
				<td>QQ：</td>
				<td><input type="text" name="qq" id="qq" value="{:$rs[qq]}"></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" id="order_submit" value="修改个人信息"></td>
			</tr>
			</form>
			</table>
		</div>
	</div>
	<div class="space clear"></div>
</div>
<script type="text/javascript">
func_php("usercp",js_usercp,"user_cp");
function check_usercp()
{
	var email = getid("email").value;
	if(!email)
	{
		alert("邮箱不允许为空！");
		return false;
	}
	var str_reg=/^\w+((-\w+)|(\.\w+))*\@{1}\w+\.{1}\w{2,4}(\.{0,1}\w{2}){0,1}/ig;
	if(email.search(str_reg) == -1)
	{
		alert("邮箱格式不正确！");
		return false;
	}
	return true;
}
</script>
<!-- inc:foot -->